import 'package:flutter/material.dart';
import 'package:flutter_app/view/P2/prepare_painter.dart';

import 'base_shape_painter.dart';
import 'canvas_scale_painter.dart';

/// create by 孙启慧 on 2021-06-07
/// 说明: 画布基础操作

class Prepare extends StatefulWidget {
  const Prepare({Key? key}) : super(key: key);

  @override
  _PrepareState createState() => _PrepareState();
}

class _PrepareState extends State<Prepare> with SingleTickerProviderStateMixin {
  late AnimationController _controller;


  @override
  void initState() {
    super.initState();
    _controller = AnimationController(vsync: this);
  }

  @override
  void dispose() {
    _controller.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
    //  appBar: AppBar(title: Text('画笔触笔使用'),),
      body: Container(
        //color: Colors.white,
        child: CustomPaint(
          size: Size(MediaQuery.of(context).size.width,MediaQuery.of(context).size.height),
          painter: BaseShapePainter(),
        ),
      ),
    );
  }
}
